package com.heima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.domain.po.SkuClass;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface SkuClassMapper extends BaseMapper<SkuClass> {

    @Insert("insert into tb_sku_class(class_name) values(#{className})")
    void addSort(String className);

    Integer countById(Integer classId);
}
